package com.iflytek.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.iflytek.entity.Answer;
import com.iflytek.service.AnswerService;
import com.iflytek.mapper.AnswerMapper;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author Windows
 * @description 针对表【t_answer】的数据库操作Service实现
 * @createDate 2022-09-10 18:51:38
 */
@Service
public class AnswerServiceImpl extends ServiceImpl<AnswerMapper, Answer>
        implements AnswerService {


    @Override
    public List<Answer> getAllByQuestionId(Integer id) {
        Map<String, Object> map = new HashMap<>();
        map.put("question_id", id);
        return this.getBaseMapper().selectByMap(map);
    }
}




